package com.zoe.config;

import com.zoe.bean.Cat;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author Zoe
 * @Date: 2020/12/14
 * @Description
 */
@Configuration
@ComponentScan({"com.zoe"})
public class MainExtraConfig {
    @Bean
    public Cat cat(){
        System.out.println("cat bean初始化");
        return new Cat();
    }
}
